import productcolor from "./productcolor"
import { get, post } from "../http"
import api from "../api"
import { AxiosPromise } from "axios"
import productcolorModel from "../productcolor"

class productcolors implements productcolor {
    query(params?: any): AxiosPromise<any> {
        return get(api.querycolor, params)
    }
    add(data: productcolorModel): AxiosPromise<any> {
        return post(api.addcolor, data)
    }
}
export default new productcolors()